package com.qys.livesMall.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.framework.view.BaseQuery;
import com.qys.livesMall.system.modal.vo.HomeBannerTypeVO;
import com.qys.livesMall.system.model.entity.H2AppHomeBanner;
import com.qys.livesMall.system.model.vo.app.AppHomeBannerVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 首页轮播图 Mapper 接口
 * </p>
 *
 * @author dp
 * @since 2023-05-02
 */
public interface H2AppHomeBannerMapper extends BaseMapper<H2AppHomeBanner> {

    /**
     * 根据时间查询在时间范围内的活动信息
     *
     * @param time
     */
    List<AppHomeBannerVo> listByApp(@Param("time") LocalDateTime time);

    List<HomeBannerTypeVO> getGoodsInfo(@Param("page") Page<HomeBannerTypeVO> page,@Param("dto") BaseQuery dto);

    List<HomeBannerTypeVO> getAnchorInfo(@Param("page") Page<HomeBannerTypeVO> page,@Param("dto") BaseQuery baseQuery);

    List<HomeBannerTypeVO> getShopInfo(@Param("page") Page<HomeBannerTypeVO> page,@Param("dto") BaseQuery baseQuery);

    List<HomeBannerTypeVO> getShortVideoInfo(@Param("page") Page<HomeBannerTypeVO> page,@Param("dto") BaseQuery baseQuery);
}
